using System;
using System.Runtime.Serialization;
namespace PH.Model.Schools
{
    [DataContract]
    public class SchoolModel:MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public System.Guid Guid { get; set; }
        [DataMember]
        [Model]
        public string SchoolName { get; set; }
        [DataMember]
        [Model]
        public string AreaCode { get; set; }
        [DataMember]
        [Model]
        public int SchType { get; set; }
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public System.DateTime CreatedOn { get; set; }
        [DataMember]
        [Model]
        public string Code { get; set; }

        #region Help
        [DataMember]
        public int PersonCount { get; set; }
        [DataMember]
        public string SchoolType { get; set; }
        [DataMember]
        public PH.Model.Accounts.UserModel User { get; set; }
        [DataMember]
        public Guid OwnerGuid { get; set; }
        [DataMember]
        [Model(ConvertType=AttributeType.NotInput)]
        public string EduName { get; set; }
        #endregion
    }

    [DataContract]
    public class SchoolCollection : ModelCollectionBase<SchoolModel> { }

    public class SchoolQuery : QueryBase
    {
        public string AreaCode { get; set; }
        public string SchType { get; set; }
        public int BureauID { get; set; }
        public int OwnerID { get; set; }

        public bool GetUser { get; set; }
        public bool GetPersonCount { get; set; }
        public bool GetSchoolType { get; set; }
    }
}
